package com.gxa.insurance.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author Min
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
    @ApiModelProperty(name = "id", value = "自增长id", dataType = "integer")
    private Integer id;
    @ApiModelProperty(name = "number", value = "订单编号", dataType = "string")
    private String number;
    @ApiModelProperty(name = "typeId", value = "订单类型id", dataType = "integer")
    private OrderType orderType;
    @ApiModelProperty(name = "name", value = "订单创建者姓名", dataType = "string")
    private String name;
    @ApiModelProperty(name = "cityId", value = "城市id", dataType = "integer")
    private City city;
    @ApiModelProperty(name = "id", value = "订单来源", dataType = "OrderSource")
    private OrderSource orderSource;
    @ApiModelProperty(name = "phone", value = "联系人手机号", dataType = "string")
    private String phone;
    @ApiModelProperty(name = "carId", value = "车牌号", dataType = "string")
    private String carId;
    @ApiModelProperty(name = "driver", value = "接车司机", dataType = "string")
    private String diver;
    @ApiModelProperty(name = "driverArea", value = "接车司机区域", dataType = "string")
    private String driverArea;
    @ApiModelProperty(name = "isReturn", value = "是否还车", dataType = "boolean")
    private Boolean isReturn;
    @ApiModelProperty(name = "returnDriver", value = "还车司机", dataType = "string")
    private String returnDriver;
    @ApiModelProperty(name = "status", value = "订单状态", dataType = "integer")
    private OrderStatus status;
    @JsonFormat(pattern = "YYYY-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(name = "createTime", value = "订单创建时间", dataType = "Date")
    private Date createTime;
    @JsonFormat(pattern = "YYYY-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(name = "overTime", value = "订单截止时间", dataType = "Date")
    private Date overTime;
    @ApiModelProperty(name = "workCompany", value = "派单公司", dataType = "string")
    private String workCompany;
    @ApiModelProperty(name = "pay", value = "支付订单", dataType = "pay")
    private Pay pay;
    @ApiModelProperty(name = "returnArea",value = "还车区域",dataType = "string")
    private String returnArea;
    @JsonFormat(pattern = "YYYY-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date getCarTime;


    @ApiModelProperty(name = "returnPrice",value = "还车价格",dataType = "double")
    private Double returnPrice;

}
